package com.hades.xq.seckill.service.model;

import com.hades.xq.seckill.base.BaseBean;
import lombok.Data;

import java.util.Date;

/**
 * @ClassName ExportSeckillUrlModel
 * @Description 获取秒杀接口返回的数据
 * @Author Hades
 * @Date 2019-03-19:18:32
 * @Version V1.0.0
 */
@Data
public class ExportSeckillUrlModel extends BaseBean {

    public ExportSeckillUrlModel(boolean exported, long seckillId, Date now, Date start, Date end) {
        this.exported = exported;
        this.seckillId = seckillId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public ExportSeckillUrlModel(boolean exported, long seckillId, String md5, Date now, Date start, Date end) {
        this.exported = exported;
        this.md5 = md5;
        this.seckillId = seckillId;
        this.now = now;
        this.start = start;
        this.end = end;
    }

    public ExportSeckillUrlModel(boolean exported, String md5, long seckillId) {
        this.exported = exported;
        this.md5 = md5;
        this.seckillId = seckillId;
    }

    public ExportSeckillUrlModel(boolean exported, long seckillId) {
        this.exported = exported;
        this.seckillId = seckillId;
    }

    /**
     * 是否开启秒杀活动
     */
    private boolean exported;

    /**
     * 加密数据
     */
    private String md5;

    /**
     * 秒杀活动ID
     */
    private long seckillId;

    /**
     * 当前系统时间
     */
    private Date now;

    /**
     * 秒杀活动开启时间
     */
    private Date start;

    /**
     * 秒杀活动结束时间
     */
    private Date end;

}